package com.ynr.user.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ynr.user.model.PermissionModel;
import com.ynr.user.model.RoleModel;
import com.ynr.user.model.UserModel;

public interface IUserDao {

	public UserModel getUserModelByUserId(@Param("user_id")String userId);
	
	public UserModel getUserModelByEmail(@Param("email")String email);
	
	public List<RoleModel> getRoleModelByUserId(@Param("user_id")String userId);
	
	public List<PermissionModel> getPermissionModelByUserId(@Param("user_id")String userId);
	
	public int addUser(Map<String, Object> params);
	
	public int updateUserInfoByUserId(Map<String, Object> params);
	
	public int updateUserPasswdByUserId(@Param("user_id")String userId, @Param("password")String password);
	
}